package com.gy.zpchat.entity;

import im.zego.zim.entity.ZIMConversationSearchInfo;
import im.zego.zim.entity.ZIMMessage;
import im.zego.zim.enums.ZIMMessageReceiptStatus;
import com.gy.zpchat.enums.ChatItemType;

public class SearchInfo {
    private ChatItemType type;
    private String userName;
    private String header;
    private ZIMMessage message;
    private ZIMMessageReceiptStatus zimMessageReceiptStatus;

    private ZIMConversationSearchInfo conversation;

    private int receiptUnreadMemberCount;

    public ZIMConversationSearchInfo getConversation() { return conversation; }

    public void setConversation(ZIMConversationSearchInfo conversation) {
        this.conversation = conversation;
    }

    public void setType(ChatItemType type) { this.type = type; }

    public void setUserName(String userName) { this.userName = userName; }

    public void setHeader(String header) { this.header = header; }

    public String getUserName() { return userName; }

    public ChatItemType getType() { return type; }

    public String getHeader() { return header; }

    public void setZIMMessage(ZIMMessage message) {
        this.message = message;
        zimMessageReceiptStatus = message.getReceiptStatus();
    }

    public ZIMMessage getZIMMessage() { return message; }

    public ZIMMessageReceiptStatus getZimMessageReceiptStatus() { return zimMessageReceiptStatus; }

    public void setZimMessageReceiptStatus(ZIMMessageReceiptStatus zimMessageReceiptStatus) {
        this.zimMessageReceiptStatus = zimMessageReceiptStatus;
    }

    public void setReceiptUnreadMemberCount(int unreadMemberCount) {
        receiptUnreadMemberCount = unreadMemberCount;
    }

    public int getReceiptUnreadMemberCount() { return receiptUnreadMemberCount; }
}
